package ModelLayer;


/**
 * Write a description of class Borrow here.
 * 
 * @author Rasmus Andersen Borup 
 * @version 
 */
public class Borrow
{
    // instance variables
    private long id;
    private int dvdId;
    private String startDate;
    private String endDate;
    private String status;

    /**
     * Constructor for objects of class Borrow
     */
    public Borrow(long id, int dvdId, String startDate, String endDate, String status)
    {
        // initialising instance variables
        this.id = id;
        this.dvdId = dvdId;
        this.startDate = startDate;
        this.endDate = endDate;
        this.status = status;
    }
    
    public long getid()
    {
        return id;
    }
    
    public int getDvdId()
    {
        return dvdId;
    }
    
    public String getStartDate()
    {
        return startDate;
    }
    
    public String getEndDate()
    {
        return endDate;
    }
    
    public String getStatus()
    {
        status();
        return status;
    }
    
    public void printInfo()
    {
        System.out.println("Person id: " + id);
        System.out.println("Dvd id: " + dvdId);
        System.out.println("Borrow date: " + startDate);
        System.out.println("Turn in date: " + endDate);
        System.out.println("Status: " + status);
    }
    
    private void status()
    {
        //check if date is past turnInDate
    }
}
